<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #star{
          width: 360px;
          height: 100px;
          background-color: grey;
        }
        span{
            display:block;
            float:left;
            width: 60px;
            height: 100px;
            margin-right:10px;
            font-size: 50px;
            text-align:center;
            line-height:100px;
        }
       
    </style>
</head>
<body>    
   <div id="star">
		<span>☆</span>
		<span>☆</span>
		<span>☆</span>
		<span>☆</span>
		<span>☆</span>
	</div>


    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script>
      var $star = $("#star span")
      $star.mouseenter(function(){
          $(this).text("★").prevAll().text("★")
        })
      $star.mouseleave(function(){
          $(this).text("☆").prevAll().text("☆")
        })
       
       
    </script>
</body>
</html>